home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Extra 1997 #2 / Amiga Plus Extra 1997 #2.iso / pd / demo-versionen / digitalimage / installation < prev    next >
Encoding:
Text File  |  1997-02-16  |  4.5 KB  |  189 lines

  1. ; Digital Image Installationsscript
  2. ; ©1994/1995; Thomas Globisch
  3. ; $VER: DigitalImage_Demo_Install 2.0 (7.10.95)
  4.  
  5.  
  6. (transcript "Digital Image installation")
  7.  
  8. (Set srcdisk "DigitalImage_Demo:")
  9. (Set os2 (NOT (< (/ (getversion) 65536) 37)))
  10.  
  11.  
  12. (if (patmatch @Language "deutsch")
  13.  (
  14.   (Set NoOS2 "Betriebssystem Version >= 2 nicht gefunden\nInstallieren Sie zuerst\n Workbench Version 2.0\n oder größer" )
  15.   (Set #instpath (cat "Wohin soll DigitalImage_Demo installiert werden ?\nWählen Sie direkt das Verzeichnis, in\ndas DigitalImage_Demo kopiert wird.\nEin weiteres Unterverzeichnis wird NICHT angelegt."))
  16.   (Set #installDI (cat "\nInstalliere DigitalImage_Demo"))
  17.   (Set #installGU (cat "\nInstalliere Guidefile"))
  18.   (Set #installPR (cat "\nInstalliere Prefs"))
  19.   (Set #installFI (cat "\nInstalliere Filter"))
  20.   (Set #installLO (cat "\nInstalliere Lademodule"))
  21.   (Set #installSA (cat "\nInstalliere Speichermodule"))
  22.   (Set #installAS (cat "\nEs kann noch ein ASSIGN in die\n s:user-startup aufgenommen werden\n\n\nASSIGN DigitalIM: "))
  23.   (set #install-msg (cat "\n\nDigitalImage_Demo - Installationsscript.\nDieses Skript installiert DigitalImage_Demo.\n\nDigitalImage ©1994/1995 Thomas Globisch\nAll Rights reserved."))
  24.   (set #which-language (cat "\nWelche Sprachdatei soll installiert werden ?"))
  25.   (set #which-version (cat "\nWelche Version soll installiert werden ?"))
  26.  )
  27.  
  28.  (
  29.   (Set NoOS2 "could not locate OS 2.0 or newer\nPlease install Amiga OS 2.0 first..." )
  30.   (Set #instpath (cat "Please choose the path to install DigitalImage_Demo.\nDirectly choose the drawer to put DigitalImage_Demo in.\nA new drawer will NOT be created."))
  31.   (Set #installDI (cat "\ninstalling DigitalImage_Demo"))
  32.   (Set #installGU (cat "\ninstalling guide"))
  33.   (Set #installPR (cat "\ninstalling prefs"))
  34.   (Set #installFI (cat "\ninstalling filter"))
  35.   (Set #installLO (cat "\ninstalling loader"))
  36.   (Set #installSA (cat "\ninstalling saver"))
  37.   (Set #installAS (cat "\nYou additionally can add an ASSIGN in your\n s:user-startup\n\n\nASSIGN DigitalIM: "))
  38.   (set #install-msg (cat "\n\nDigitalImage_Demo - Installation utility.\nThis utility installes DigitalImage_Demo.\n\nDigitalImage ©1994/1995 Thomas Globisch\nAll Rights reserved."))
  39.   (set #which-language (cat "\nChoose language to install"))
  40.   (set #which-version (cat "\nPlease choose version to install"))
  41.  )
  42. )
  43.  
  44. (set old_level @user-level)
  45.  
  46. ; LOCALE vorhanden?
  47.  
  48. (Set locsrc "DigitalImage:locale/catalogs/")
  49.  
  50. ; Wenn < 37.175 -> Ende
  51.  
  52. (if (not os2)
  53.    (abort NoOS2)
  54. )
  55.  
  56.  
  57. (complete 0)
  58. (message #install-msg)
  59. (set instpfad
  60.     (askdir
  61.         (prompt #instpath)
  62.         (help @askdir-help)
  63.         (default "WORK:")
  64.     )
  65. )
  66.  
  67.  
  68. (copyfiles
  69.     (prompt #installDI)
  70.     (help @copyfile-help)
  71.     (source ( tackon srcdisk "bin"))
  72.     (dest instpfad)
  73.         (confirm)
  74.     (infos)
  75.         (files)
  76.         (all)
  77. )
  78.  
  79.  
  80.  
  81. (complete 20)
  82. (copylib
  83.     (prompt #installGU)
  84.     (help @copylib-help)
  85.     (source (tackon srcdisk "DigitalImage.guide"))
  86.     (infos)
  87.     (dest instpfad)
  88.         (confirm)
  89. )
  90.  
  91.  
  92.  
  93. (complete 50)
  94. (
  95.  (makedir (tackon instpfad "Filter"))
  96.  (copyfiles
  97.     (prompt #installFI)
  98.     (help @copyfile-help)
  99.     (source (tackon srcdisk "Filter"))
  100.     (pattern "#?")
  101.     (files)
  102.     (infos)
  103.         (dest (tackon instpfad "Filter"))
  104.         (confirm)
  105.  )
  106. )
  107.  
  108. (complete 60)
  109. (
  110.  (makedir (tackon instpfad "Loader"))
  111.  (copyfiles
  112.     (prompt #installLO)
  113.     (help @copyfile-help)
  114.     (source (tackon srcdisk "Loader"))
  115.     (pattern "#?")
  116.     (files)
  117.     (infos)
  118.         (dest (tackon instpfad "Loader"))
  119.         (confirm)
  120.  )
  121. )
  122.  
  123. (complete 70)
  124. (
  125.  (makedir (tackon instpfad "Saver"))
  126.  (copyfiles
  127.     (prompt #installSA)
  128.     (help @copyfile-help)
  129.     (source (tackon srcdisk "Saver"))
  130.     (pattern "#?")
  131.     (files)
  132.     (infos)
  133.         (dest (tackon instpfad "Saver"))
  134.         (confirm)
  135.  )
  136. )
  137.  
  138. (complete 90)
  139.  
  140.  
  141. (if (exists "sys:locale")
  142. (
  143.         (if (exists "LOCALE:")
  144.     (
  145.         (user 2)
  146.         (set lang (askoptions (prompt #which-language)
  147.                                 (help #which-language-help)
  148.                                 (choices
  149.                                  "Deutsch"
  150.                                  "English")
  151.                                     (default default_lang)
  152.                      )
  153.         )
  154.         (user old_level)
  155.  
  156.         (set n 0)
  157.         (while (set language (select n
  158.                                         "deutsch"
  159.                                         "english"
  160.                                         ""))
  161.         (
  162.             (if (IN lang n)
  163.             (
  164.                 (if (<> 2 n)
  165.                 (
  166.                     (makedir (cat "LOCALE:Catalogs/" language))
  167.                     (copyfiles (source (cat locsrc language))
  168.                                                                  (dest(cat "LOCALE:Catalogs/" language))
  169.                                   (all)
  170.                     )
  171.                 ))
  172.             ))
  173.             (set n (+ n 1))
  174.         ))
  175.     ))
  176. ))
  177.  
  178. (complete 95)
  179.  
  180. (set @default-dest instpfad)
  181.  
  182. (Startup "DigitalImage"
  183.  (prompt (cat #installAS instpfad))
  184.  (help @startup-help)
  185.  (command (cat "ASSIGN DigitalIM: " instpfad))
  186. )
  187.  
  188. (complete 100)
  189.